<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet"  type="text/css" href='<c:url value="/resources/jquery-easyui-1.5/themes/default/easyui.css"/>' />
<link rel="stylesheet"  type="text/css" href='<c:url value="/resources/jquery-easyui-1.5/themes/icon.css"/>' />
<script type="text/javascript" src='<c:url value="/resources/jquery-easyui-1.5/jquery.min.js"/>' /></script>
<script type="text/javascript" src='<c:url value="/resources/jquery-easyui-1.5/jquery.easyui.min.js"/>' ></script>
<script type="text/javascript" src='<c:url value="/resources/jquery-easyui-1.5/locale/easyui-lang-zh_CN.js"/>'></script>
<title>JFinalDemo</title>
<style>
	.btn-area{
	text-align:center;
	}
	form{
    color: #000000;
    font-size: 12px;
	}
	form table tr td input{
		width:100%;
	}
	.text-lable{
		width:50px;
	}
</style>
</head>
<body>
         <form id="editNewsForm" action="${basePath }/news/edit" method="post">
         	<input type="hidden" name="ID" value="${news.ID }"/>
	    	<table cellpadding="5" Width="100%">
	    		<tr>
	    			<td class="text-lable">标题:</td>
	    			<td colspan="3"><input type="text" name="title" data-options="required:true" value="${news.title }"></input></td>
	    		</tr>
	    		<tr>
	    			<td class="text-lable">来源:</td>
	    			<td colspan="3"><input type="text" name="source" data-options="required:true" value="${news.source }"></input></td>
	    		</tr>
	    		<tr>
	    			<td class="text-lable">创建人:</td>
	    			<td colspan="3"><input  type="text" name="creater" data-options="required:true" value="${news.creater }"></input></td>
	    		</tr>
	    		<tr>
	    			<td class="text-lable">内容:</td>
	    			<td colspan="3"><textarea  id="content" name="content" class="news_textarea" maxlength=2000 >${news.content }</textarea></td>
	    		</tr>
	    	</table>
	    	 <div class="btn-area">
	    	<input  id="checkBtn" type="button" class="btn btn-primary " value="确定" />
   			<input type="reset" class="btn btn-warning " value="重置" />
	    </div>
	    </form>
</body>
<script type="text/javascript" src="${basePath}/resources/kindeditor/kindeditor-min.js"></script>
<script type="text/javascript" src="${basePath}/resources/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript" src="${basePath}/resources/kindeditor/plugins/code/prettify.js"></script>
<script type="text/javascript" src="${basePath}/resources/js/common.js"></script>
<script type="text/javascript" src="${basePath}/resources/js/formHelp.js"></script>

<script type="text/javascript">
$(function(){
	initKindEditor("${news.imgPath}","${basePath}");
});
$("#checkBtn").on("click",function(){
	parent.colseDialog();
	$("#editNewsForm").submit();
});
</script>
</html>